package cn.iocoder.lw.module.core.convert.evaluation;

import cn.iocoder.lw.framework.common.pojo.PageResult;
import cn.iocoder.lw.module.core.controller.admin.evaluation.vo.evaluation.CoreWorkOrderEvaluationRespVO;
import cn.iocoder.lw.module.core.controller.admin.evaluation.vo.evaluation.CoreWorkOrderEvaluationSaveReqVO;
import cn.iocoder.lw.module.core.dal.dataobject.evaluation.CoreWorkOrderEvaluationDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 工单评价 Convert
 *
 * @author Lw源码
 */
@Mapper
public interface CoreWorkOrderEvaluationConvert {

    CoreWorkOrderEvaluationConvert INSTANCE = Mappers.getMapper(CoreWorkOrderEvaluationConvert.class);

    CoreWorkOrderEvaluationDO convert(CoreWorkOrderEvaluationSaveReqVO bean);

    CoreWorkOrderEvaluationRespVO convert(CoreWorkOrderEvaluationDO bean);

    List<CoreWorkOrderEvaluationRespVO> convertList(List<CoreWorkOrderEvaluationDO> list);

    PageResult<CoreWorkOrderEvaluationRespVO> convertPage(PageResult<CoreWorkOrderEvaluationDO> page);

}